﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Dominio;
using LogicaNegocios.Manager;
using System.ServiceModel.Activation;

namespace UIWeb.WcfServices
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class LoginServices : ILoginServices
    {
        public Usuario Login(string username, string password)        
        {
            UsuarioManager usuarioManager = UsuarioManager.GetManager();
            Usuario usuario = usuarioManager.Login(username, password);

            return usuario;
        }
    }
}
